package com.sdyc.ndmp.cls.protocol;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * <pre>
 * Created with IntelliJ IDEA.
 * User: ZhenQin
 * Date: 2015/3/17
 * Time: 13:11
 * To change this template use File | Settings | File Templates.
 * </pre>
 *
 * @author ZhenQin
 */
public class ProtocolProxy implements InvocationHandler {




    public ProtocolProxy() {
    }


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        if(method.getName().equals("send")) {
            return null;
        } else if(method.getName().equals("sendList")) {
            return null;
        } else if(method.getName().equals("close")){
            return null;
        }
        throw new IllegalArgumentException("unkonwn operation.");
    }

}
